from selenium.webdriver.common.by import By

from autoTest_ecshop_new1.base_page.base import BasePage
class HomePage(BasePage):
    #搜索框定位器
    keyword_loc=(By.ID,"keyword")
    #搜索按钮定位器
    sBtn_loc=(By.XPATH,'//*[@type="submit"]')

    goods_loc=(By.XPATH,'//*[@src="images/200905/thumb_img/9_thumb_G_1241511871555.jpg"]')

    addCart_loc=(By.XPATH,'//*[@src="themes/default/images/bnt_cat.gif"]')

    delGoods_loc=(By.XPATH, "//a[@class='f6' and contains(@href, 'flow.php?step=drop_goods') and text()='删除']")


